<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:fragment="headerFragment(title,active)">
    <meta charset="utf-8"/>
    <title>
        <th:block th:text="${title!=null?title:'BCMSaaS租户激活码生成工具'}"></th:block>
    </title>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport"/>
    <meta content="Coderthemes" name="author"/>
    <meta content="IE=edge" http-equiv="X-UA-Compatible"/>
    <link rel="shortcut icon" th:href="@{/static/images/favicon.png}"/>
    <link rel="stylesheet" th:href="@{/static/plugins/bootstrap-3.3.7/css/bootstrap.css}" type="text/css"/>
    <link rel="stylesheet" th:href="@{/static/plugins/font-awesome-4.7.0/css/font-awesome.css}"/>
    <link rel="stylesheet" th:href="@{/static/css/style.min.css}" type="text/css"/>
    <link rel="stylesheet" th:href="@{/static/plugins/layer/theme/default/layer.css}"/>

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
</head>
<div th:fragment="header-body">
    <div class="topbar">
        <div class="topbar-left">
            <div class="text-center p-t-10" style="margin: 0 auto;">
                <div class="pull-left" style="padding-left: 10px;">
                    <a th:href="@{/index}">
                        <img height="50" th:src="@{/static/images/favicon.png}" width="50"/>
                    </a>
                </div>
                <div class="pull-left" style="padding-left: 10px;">
                    <span style="font-weight: bold;font-size: 14px; color: #2f353f; line-height: 50px;">BCMaaS激活码生成工具</span>
                </div>
            </div>
        </div>
        <div class="navbar navbar-default" role="navigation">
            <div class="container">
                <div class="">
                    <div class="pull-left">
                        <button class="button-menu-mobile open-left" type="button">
                            <i class="fa fa-bars"></i>
                        </button>
                        <span class="clearfix"></span>
                    </div>

                    <ul class="nav navbar-nav navbar-right pull-right">
                        <li class="dropdown">
                            <a aria-expanded="true" class="dropdown-toggle profile" data-toggle="dropdown"
                               th:href="@{index.html}"><img alt="user-img"
                                                            class="img-circle"
                                                            th:src="${commons.gravatar(session.login_user.email)}"/>
                            </a>
                            <ul class="dropdown-menu">
                                <li><a th:href="@{/profile}"><i class="fa fa-sun-o"></i> 个人设置</a></li>
                                <li><a th:href="@{/logout}"><i class="fa fa-sign-out"></i> 注销</a></li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div class="left side-menu">
        <div class="sidebar-inner slimscrollleft">
            <div id="sidebar-menu">
                <ul>
                    <!--                    <li th:class="${active}=='home'?'active':''">-->
                    <!--                        <a th:class="${active}=='home'?'waves-effect active':'waves-effect'"-->
                    <!--                           th:href="@{/index}"><i-->
                    <!--                                aria-hidden="true" class="fa fa-dashboard"></i><span> 仪表盘 </span></a>-->
                    <!--                    </li>-->
                    <li th:class="${active}=='cdkey'?'active':''">
                        <a th:class="${active}=='cdkey'?'waves-effect active':'waves-effect'"
                           th:href="@{/cd/key/index}"><i
                                aria-hidden="true" class="fa fa-id-card"></i><span> 激活码生成 </span> </a>
                    </li>
                    <li th:class="${active}=='cdkeyadd'?'active':''">
                        <a th:class="${active}=='cdkeyadd'?'waves-effect active':'waves-effect'"
                           th:href="@{/cd/key/add}"><i
                                aria-hidden="true" class="fa fa-plus-circle"></i><span> 激活码追加 </span> </a>
                    </li>
                    <li th:class="${active}=='cdkeybatch'?'active':''">
                        <a th:class="${active}=='cdkeybatch'?'waves-effect active':'waves-effect'"
                           th:href="@{/cd/key/batch}"><i
                                aria-hidden="true" class="fa fa-arrow-circle-o-down"></i><span> 批量生成 </span> </a>
                    </li>
                    <li th:class="${active}=='cdkeylist'?'active':''">
                        <a th:class="${active}=='cdkeylist'?'waves-effect active':'waves-effect'"
                           th:href="@{/cd/key/list}"><i
                                aria-hidden="true" class="fa fa-table"></i><span> 生成记录 </span> </a>
                    </li>
                </ul>
                <div class="clearfix"></div>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
</div>
</html>
